export class Singleton{
    static inst<T extends {}>(this:new()=>T):T{
        if ((<any>this).instance == null){
            (<any>this).instance = new this();
        }
        return (<any>this).instance;
    }
}
